#include <stdio.h>

int main() {
    int score, max = 0, min = 100, unpass = 0, count;
    float average, sum = 0.0;

    scanf("%d", &score);
    while (score > 0) {
        count++;
        if (score < 60) {
            unpass++;
        }
        if (score > max) {
            max = score;
        }
        if (score < min) {
            min = score;
        }
        sum += score;
        scanf("%d", &score);
    } 
    average = sum / count;
    printf("sum: %f, average: %f\n", sum, average);
    printf("max: %d, min: %d\n", max, min);
    printf("unpass count: %d\n", unpass);
    return 0;
}
